package com.hna.face.exception;


/**
 * Error Codes of BOT Platform.
 *
 * @author Bin.Zhang
 */
public final class Codes {
	// error code pattern: xxx_xx_xxx_xxx -> (HTTP status code) - (product) (component) (details)

	// generic (11_000_xxx)
	public static final Code SUCCESS = Code.success(11_000_0001);
	public static final Code INTERNAL_ERROR = Code.internalError(11_000_0002);
	public static final Code SERVICE_UNAVAILABLE = Code.serviceUnavailable(11_000_0003);
	public static final Code REQUEST_TIMEOUT = Code.gatewayTimeout(11_000_0004);
	public static final Code READ_JSON_FAILURE = Code.invalidArgument(11_000_0005);
	public static final Code WRITE_JSON_FAILURE = Code.invalidArgument(11_000_0006);
	public static final Code BAD_REQUEST = Code.invalidArgument(11_000_0007);
	public static final Code UNAUTHORIZED = Code.notAuthorized(11_000_0008);
	public static final Code PERMISSION_DENIED = Code.notPerimitted(11_000_0009);

	// account (11_001_xxx)
	public static final Code ACCOUNT_NOT_FOUND = Code.notPerimitted(11_001_0001);

	private Codes() {
		throw new AssertionError();
	}
}